package solution1.demo1201.demo2.request;

import java.io.Serializable;
import java.util.Arrays;

public class Request implements Serializable {

    private int type;
    private int length;
    private byte[] body;

    @Override
    public String toString() {
        return "Request{" +
                "type=" + type +
                ", length=" + length +
                ", body=" + Arrays.toString(body) +
                '}';
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public int getLength() {
        return length;
    }

    public void setLength(int length) {
        this.length = length;
    }

    public byte[] getBody() {
        return body;
    }

    public void setBody(byte[] body) {
        this.body = body;
    }
}
